const {defineConfig} = require("@vue/cli-service")

module.exports = defineConfig({
        lintOnSave: false,
        transpileDependencies: true,
        devServer: {
            proxy: {
                "/": {
                    target: "http://localhost:9999", //需要跨域的目标地址
                    pathRewrite: {'^/': ''},//将带有api的路径重写为''
                    changeOrigin: true,//用于控制请求头的Host
                    ws: false
                }
            }
        }
    }
)
